package com.neusoft.neuiotms.dcom.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.neusoft.bizcore.web.dto.AbstractDTO;
import com.neusoft.neuiotms.dcom.model.enums.QuestionnaireScope;
import com.neusoft.neuiotms.dcom.model.enums.QuestionnaireType;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class QuestionnaireDTO extends AbstractDTO {

    private static final long serialVersionUID = 1L;

    /** 运维小组 */
    @NotBlank(message = "运维小组不能为空")
    private String groupCode;

    /** 标题 */
    @NotBlank(message = "标题不能为空")
    private String title;

    /** 年 */
    private int year = 0;

    @NotNull(message = "使用范围不能为空")
    private QuestionnaireScope scope = QuestionnaireScope.WORKER;

    /** 选项 */
    @NotNull(message = "任务类型不能为空")
    private QuestionnaireType type;

    /** 调查项 */
    private List<QuestionnaireFeedbackDTO> feedbacks = new ArrayList<>();

    /** 截止时间 */
    private Date closedAt;

    private boolean published = false;

    private Date publishAt;
}
